package OOP.day08.PersonDemo;

public class Doctor extends Person {
    String office;

    public Doctor(){

    }
    public Doctor(String name, int age, String adress, String office){
        super(name, age, adress);
        this.office = office;
    }


    //治疗患者
    public void treatPatient(Patient p) {
        System.out.println("医生" + name + " 正在治疗病人 " + p.name);
    }
}
